/**
 * 动态规划
 * @param {number[]} prices
 * @return {number}
 */
const maxProfit = prices => {

  const dp = []
  dp[0] = 0
  dp[1] = -prices[0]
}


console.log(maxProfit([1, 2, 0, 6, 5]))